#pragma once
#include "audionode.h"
class CAR :
	public CAudioNode
{
public:
	CAR(void);
	~CAR(void);

	virtual void Start();
	virtual bool Generate();

	void SetSource( CAudioNode *aSource );
	void SetDuration(double aD) { mDuration = aD; }
	void SetAttack(double a) { mAttack = a; }
	void SetRelease(double r) { mRelease = r; }

private:
	double mAttack;
	double mRelease;
	double mDuration;
	double mTime;
	CAudioNode *mSource;

	
};

